package com.ita.util;

import com.ita.entity.Customer;

public class PrintHelper {
	public static void printHelpDoc() {

		System.out.println("Welcome to CRM system");
		System.out.println("1: L for query customers");
		System.out.println("2: A for adding customer");
		System.out.println("3: D for delete customer");
		System.out.println("4: U for modify customer");
		System.out.println("5: O for ordering customer");
		System.out.println("5: H for check doc");
		System.out.println("6: Q for quiting system");
	}

	public static void printQuit() {

		System.out.println("CRM say bye bye to you!");

	}
	
	public static void printAddHelp() {

		System.out.println("A name:Sam,sex:Male,......" + "\t" + "add customer including all info");

	}

	public static void printCustomers(Customer[] cs) {

		for (int i = 0; i < cs.length; i++) {
			Customer c = cs[i];
			System.out.print("customer" + (i + 1) + "\t");
			System.out.print("id:" + c.getId() + "\t");
			System.out.print("name:" + c.getName() + "\t");
			System.out.print("sex:" + c.getSex() + "\t");
			System.out.print("birthday:" + c.getBirthDay() + "\t");
			System.out.print("phone:" + c.getPhone() + "\t");
			System.out.print("address:" + c.getAddress());
			System.out.println();
		}
	}
}
